
<template>
	<div class="app-container2"
	>
		<el-form ref="form" :model="ruleForm" label-width="80px" :inline="true">
			<el-form-item label="标题:">
				<el-input v-model="ruleForm.name" placeholder="标题"></el-input>
			</el-form-item>
		</el-form>
		<div
			
			style="
				margin-bottom: 24px;
				display: flex;
				justify-content: space-between;
			"
		>
			<div  style="display: flex; align-items: center">
				<el-button icon="el-icon-upload" style="margin-right: 12px"
					>批量推送</el-button
				>
			</div>
			<div  style="display: flex; align-items: center">
				<el-button @click="submit">重置</el-button>
				<el-button type="danger">查询</el-button>
			</div>
		</div>
		<el-table :data="list" style="width: 100%" v-loading="loading">
			<el-table-column
				type="selection"
				width="55"
				align="center"
			></el-table-column>
			<el-table-column prop="date" label="来源网站名称" align="center">
			</el-table-column>
			<el-table-column prop="date" label="来源网站名称" align="center">
			</el-table-column>
			<el-table-column prop="date" label="文章标题" align="center">
			</el-table-column>
			<el-table-column prop="date" label="文章时间" align="center">
			</el-table-column>

			<el-table-column label="操作" align="center">
				<template slot-scope="{ row }">
					<div
						
						style="
							display: flex;
							align-items: center;
							justify-content: center;
						"
					>
						<el-button type="text" @click="detail(row)"
							>详情</el-button
						>
						<el-button type="text" @click="push(row)"
							>推送</el-button
						>
					</div>
				</template>
			</el-table-column>
		</el-table>
		<pagination
			v-show="ruleForm.total > 0"
			:total="ruleForm.total"
			:page.sync="ruleForm.pageNum"
			:limit.sync="ruleForm.pageSize"
			@pagination="() => {}"
		/>
		<el-dialog title="文章推送" :visible.sync="dialogVisible" width="500px">
			<el-form
				:model="ruleForm"
				:rules="rules"
				ref="ruleForm"
				label-width="100px"
				class="demo-ruleForm"
			>
				<el-form-item label="目标站点">
					<el-cascader
						:options="[]"
						style="width: 100%"
					></el-cascader>
				</el-form-item>
				<el-form-item label="目标栏目">
					<el-select style="width: 100%">
						<el-option value="1"></el-option>
					</el-select>
				</el-form-item>
				<el-form-item label="发布时间">
					<el-date-picker type="date" style="width: 100%">
					</el-date-picker>
				</el-form-item>
			</el-form>
			<span slot="footer" class="dialog-footer">
				<el-button @click="dialogVisible = false">取 消</el-button>
				<el-button type="primary" @click="dialogVisible = false"
					>确 定</el-button
				>
			</span>
		</el-dialog>
	</div>
</template>

<script>
// import { } from "@/api/card/home";
export default {
	data() {
		return {
			loading: false,
			value1: '',
			dialogVisible: false,
			list: [{}],
			ruleForm: {
				pageNum: 1,
				pageSize: 10,
				total: 0,
				type: [],
			},
			rules: {
				name: [
					{
						required: true,
						message: '请输入活动名称',
						trigger: 'blur',
					},
				],
			},
		}
	},
	methods: {
		submit() {
			
		},
		//切换分页
		handleCurrentChange(val) {
			this.loading = true
			this.ruleForm.pageNum = val
		},
		//切换总条数
		handleSizeChange(val) {
			this.loading = true
			this.ruleForm.pageSize = val
		},
		detail(row) {
			window.open('https://www.baidu.com')
		},
		push(row) {
			this.dialogVisible = true
		},
	},
	created() {},
}
</script>

<style lang="scss" scoped></style>
